// https://vitepress.dev/guide/custom-theme
import Layout from './layout/Layout.vue';
import type { Theme } from 'vitepress';
import TDesign from 'tdesign-vue-next';
import 'tdesign-vue-next/es/style/index.css';
import './styles/index.css';
import './styles/fonts.css';
import './styles/vars.css';
import './styles/base.css';
import './styles/icons.css';
import './styles/utils.css';
import './styles/components/custom-block.css';
import './styles/components/vp-code.css';
import './styles/components/vp-code-group.css';
import './styles/components/vp-doc.css';
import './styles/components/vp-sponsor.css';

export default {
  Layout,
  enhanceApp({ app, router, siteData }) {
    app.use(TDesign);
  }
} satisfies Theme;
